package cn.hd01.repository.entity;

import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;

@Entity
@Table(name = "c_order")
@JsonInclude(Include.NON_NULL)
public class ConsumeReport {
	
	@Id
	private Integer customerId;
	
	private String customerName;
	
	private BigDecimal amount;
	
	private String distributorAllName;
	
	@Transient
	@DateTimeFormat(pattern="yyyy-MM-dd")
	private Date createBeginTime;
	
	@Transient
	@DateTimeFormat(pattern="yyyy-MM-dd")
	private Date createEndTime;

	public Integer getCustomerId() {
		return customerId;
	}

	public void setCustomerId(Integer customerId) {
		this.customerId = customerId;
	}

	public String getCustomerName() {
		return customerName;
	}

	public void setCustomerName(String customerName) {
		this.customerName = customerName;
	}

	public BigDecimal getAmount() {
		return amount;
	}

	public void setAmount(BigDecimal amount) {
		this.amount = amount;
	}

	public Date getCreateBeginTime() {
		return createBeginTime;
	}

	public void setCreateBeginTime(Date createBeginTime) {
		this.createBeginTime = createBeginTime;
	}

	public Date getCreateEndTime() {
		return createEndTime;
	}

	public void setCreateEndTime(Date createEndTime) {
		this.createEndTime = createEndTime;
	}

	public String getDistributorAllName() {
		return distributorAllName;
	}

	public void setDistributorAllName(String distributorAllName) {
		this.distributorAllName = distributorAllName;
	}
}
